package com.gps.funnymath.concreteItems;

public class ConcreteNoun implements ConcreteToken{
	
	String word;
	
	public ConcreteNoun(String word){
		this.word = word;
	}
	
	public String getWord() {
		return word;
	}
	
	@Override
	public boolean equals(Object obj) {

		if(obj instanceof ConcreteNoun){
			ConcreteNoun concreteUnit = (ConcreteNoun)obj;
			if(word.equals(concreteUnit.getWord()))
				return true;
		}
		
		return false;
	}	
	
	@Override
	public String toString() {
		return word;
	}
	
}
